using System;

namespace Gadgeteer.Interfaces
{
    public interface IButton
    {
        /// <summary>
        /// Gets a value that indicates whether the state of this Button is Pressed.
        /// </summary>
        bool IsPressed { get; }

        /// <summary>
        /// Raised when the state of IButton is Pressed.
        /// </summary>
        event ButtonEventHandler ButtonPressed;

        /// <summary>
        /// Raised when the state of IButton is Released.
        /// </summary>
        event ButtonEventHandler ButtonReleased;
    }
}
